
for i in range(1,10):
    for j in range(1,i+1):
        print('\t{}*{}={} '.format(j,i,j*i),end='')
    print()
print('='*100)
i=0
while i<9:
    i+=1
    j=0
    while j<i:
        j += 1
        print("\t{}*{}={} ".format(j,i,j*i),end='')
    print()
print('='*100)
for i in range(9,0,-1):
    for j in range(1,i+1):
        print('\t{}*{}={}'.format(j,i,j*i),end='')
    print()
print('='*100)
i=9
while i>=1:
    j=1
    while j<=i:
        print('\t{}*{}={}'.format(j, i, j * i), end='')
        j+=1
    print()
    i-=1
print('='*100)



